package com.website.company.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "company_development")
@TableName("company_development")
public class CompanyDevelopment {

    private static final long serialVersionUID = 1L;

    @Id
    @TableId(value = "id", type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column
    @TableField("date_name")
    private String dateName;

    @Column
    @TableField("description")
    private String description;

    @Column(nullable = false)
    @TableField("dev_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date devDate;

    @Column(name = "pic")
    @TableField("pic")
    private String pic;

    @Column(name = "mobile_banner_pic")
    @TableField("mobile_banner_pic")
    private String mobileBannerPic;


    @TableField(exist = false)
    private String dataString;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDateName() {
        return dateName;
    }

    public void setDateName(String dateName) {
        this.dateName = dateName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getDevDate() {
        return devDate;
    }

    public void setDevDate(Date devDate) {
        this.devDate = devDate;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getMobileBannerPic() {
        return mobileBannerPic;
    }

    public void setMobileBannerPic(String mobileBannerPic) {
        this.mobileBannerPic = mobileBannerPic;
    }

    public String getDataString() {
        return dataString;
    }

    public void setDataString(String dataString) {
        this.dataString = dataString;
    }
}
